package com.zx.map.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.dao.model.ConsumeLog;
import com.zx.map.dao.model.ConsumeLogExample;

public interface ConsumeLogDao {

	/**
	 * 新增
	 *
	 * @param consumeLog
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String add(ConsumeLog consumeLog) throws DataAccessException;

	/**
	 * 更新
	 *
	 * @param consumeLog
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String update(ConsumeLog consumeLog) throws DataAccessException;

	/**
	 * 删除
	 *
	 * @param consumeLog
	 * @throws org.springframework.dao.DataAccessException
	 */
	public void delete(ConsumeLog consumeLog) throws DataAccessException;

	/**
	 * 根据Model查找List
	 * @param example
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public List<ConsumeLog> getListByExample(ConsumeLogExample example) throws DataAccessException;

     /**
     *  根据筛选的记录 更新某个字段
     */
    public void updateByExample(ConsumeLog consumeLog, ConsumeLogExample example);
    
    /**
     * 统计条数
     * @param example
     * @return
     */
    public int countListByExample(ConsumeLogExample example);
    
    /**
     * 分页查找
     */
	public List<ConsumeLog> getPageByExample(int pageSize, int pageBegin,
			ConsumeLogExample example) throws DataAccessException ;
	
}
